x=eval(input("请输入个人工资:"))
y=x-5000
if y<=1500:
    print("个人所得税为{}".format(y*0.03))
elif y<=4500:
    print("个人所得税为{}".format(y*0.1))
elif y<=9000:
    print("个人所得税为{}".format(y*0.2))
elif y<=35000:
    print("个人所得税为{}".format(y*0.25))
elif y<=55000:
    print("个人所得税为{}".format(y*0.3))
elif y<=80000:
    print("个人所得税为{}".format(y*0.35))
else:
    print("个人所得税为{}".format(y*0.45))